package cn.itsource.feign;

import cn.itsource.domain.Store;
import cn.itsource.utils.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "store-server",fallbackFactory = StoreFeignFallbackFactory.class)
@RequestMapping("/store")
public interface StoreFeign {

    @PostMapping("/add")
    public JsonResult add(@RequestBody Store store);
}
